home *** CD-ROM | disk | FTP | other *** search
- /*
- File: MailableDocumentWindow.cp
-
- Contains: A wacky experiment with AOCE
-
- Written by: Steve & Dave Falkenburg
-
- Copyright: © 1993-94 by Dave Falkenburg, all rights reserved.
-
- Change History (most recent first):
-
- <4> 9/27/94 DRF Changes for Dave Mark: AppLib.h is now Sprocket.h.
- <3> 9/9/94 DRF Conditionalized AOCE support.
- <2> 8/26/94 DRF Added GetPerfectWindowSize, with call to
- AdjustPerfectWindowSizeForMailer.
- */
-
- #include "Sprocket.h"
- #include "MailableDocumentWindow.h"
-
-
- #if qAOCEAware
-
-
-
- TMailableDocumentWindow::TMailableDocumentWindow()
- {
- this->CreateWindow(); // must be a normal window
- }
-
-
- WindowRef
- TMailableDocumentWindow::MakeNewWindow(WindowRef behindWindow)
- {
- WindowRef aWindow = GetNewColorOrBlackAndWhiteWindow(1027,nil,behindWindow);
-
- return aWindow;
- }
-
-
- void
- TMailableDocumentWindow::GetPerfectWindowSize(Rect * perfectSize)
- {
- TWindow::GetPerfectWindowSize(perfectSize);
- AdjustPerfectWindowSizeForMailer(perfectSize);
- }
-
-
- void
- TMailableDocumentWindow::DrawContents(void)
- {
- // drawing will be clipped to the content so we can go ahead and use the portRect
- FillRect(&fWindow->portRect,&qd.ltGray);
- }
-
- #endif